//
//  APUserDataManager.h
//  AqualPolo
//
//  Created by dong on 2024/5/6.
//

#import "BaseDataManager.h"
#import "APBroadcasterModel.h"

NS_ASSUME_NONNULL_BEGIN
typedef void(^LoadUserResultBlock)(NSArray *users);
typedef void(^APUserResultBlock)(bool success,NSString *msg);

@interface APUserDataManager : BaseDataManager
+ (APUserDataManager *)shareInstance;
@property (nonatomic, copy) NSString *googleTranslationKey;
@property (nonatomic, copy) NSString *rck;

@property (nonatomic, strong) NSArray *users;

- (APBroadcasterModel *)searchUserByUserId:(NSString *)userId;

- (void)loadUsers:(LoadUserResultBlock)callBack;
- (void)unfollow:(NSString *)userId result:(APUserResultBlock)callBack;
- (void)follow:(NSString *)userId result:(APUserResultBlock)callBack;

- (void)blockUser:(NSString *)userId result:(APUserResultBlock)callBack;
- (void)unBlockUser:(NSString *)userId result:(APUserResultBlock)callBack;
- (void)clearData;
@end

NS_ASSUME_NONNULL_END
